﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class endMove : MonoBehaviour
{
    public float hight;
    private void Start()
    {
        hight = -29f;
    }
    void Update()
    {
        if(Input.GetKey(KeyCode.Escape))
        {
            Application.Quit();
        }
        hight += 0.005f;
        if(this.transform.position.x<=31)
        {
            this.transform.position = new Vector2(1, hight);
        }
    }
}
